package com.collection.provider.biz;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.collection.api.entity.ApplyAudit;
import com.collection.api.entity.ApplyAuditExample;
import com.collection.provider.business.dao.ApplyAuditMapper;

/**
  * @Description :
  * @author : zongzp
  * @date :2017年11月7日上午9:15:16
  * @version : 1.1.0
  */
@Service
public class ApplyAuditBiz {
	@Autowired 
	private ApplyAuditMapper applyAuditMapper;
	

	public int deleteByPrimaryKey(Integer id){
    	return applyAuditMapper.deleteByPrimaryKey(id);
    }

	public int insert(ApplyAudit record){
    	return applyAuditMapper.insert(record);
    }

	public int insertSelective(ApplyAudit record){
    	return applyAuditMapper.insert(record);
    }

	public List<ApplyAudit> selectByExample(ApplyAuditExample example){
    	return applyAuditMapper.selectByExample(example);
    }

	public ApplyAudit selectByPrimaryKey(Integer id){
    	return applyAuditMapper.selectByPrimaryKey(id);
    }

	public int updateByPrimaryKeySelective(ApplyAudit record){
    	return applyAuditMapper.updateByPrimaryKeySelective(record);
    }

	public int updateByPrimaryKey(ApplyAudit record){
    	return applyAuditMapper.updateByPrimaryKey(record);
    }
	/**
	  *
	  *@destruction：获取审批记录列表
	  *@author：zongzhiping
	  *@date:2018年1月17日
	  *@param args
	  *
	**/
	public Map<String, Object> selectAuditRecordList(String applyMainId) {
		return applyAuditMapper.selectAuditRecordList(Integer.parseInt(applyMainId));
	}
}

